package es.cea.web;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/Detalle")
public class Detalle extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		PrintWriter pw=response.getWriter();
		pw.print("<html><head></head><body>");
		pw.print("<h1 align='center'>Detalle de libros</h1><hr><br><h2 align='center'>");
		pw.print("Id: "+request.getParameter("id")+"<br>");
		pw.print("Titulo: "+request.getParameter("titulo")+"<br>");
		pw.print("Fecha: "+request.getParameter("fecha")+"<br>");
		pw.print("Autor: "+request.getParameter("autor")+"<br>");
		pw.print("<a href='ListadoLibros'>volver</a><br>");
		pw.println("</h2></body></html>");
    	pw.close();
    
	}


}
